package top.chukongxiang.project.base.service.user.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.chukongxiang.project.base.mapper.user.RoleUserMapper;
import top.chukongxiang.project.base.model.entity.sys.Role;
import top.chukongxiang.project.base.model.entity.user.RoleUser;
import top.chukongxiang.project.base.service.user.RoleUserService;

/**
 * 角色用户Service实现
 * @author 楚孔响
 * @version 1.0
 * @date 2022/2/21 16:36
 */
@Service
@Slf4j
public class RoleUserServiceImpl extends ServiceImpl<RoleUserMapper, RoleUser> implements RoleUserService {

    @Override
    public Role getRoleByUserId(String userId) {
        return baseMapper.findRoleByUserId(userId);
    }

}
